/**
 * Copyright (c) 2009 Netflix-Flex_API Contributors.
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy of 
 * this software and associated documentation files (the "Software"), to deal in 
 * the Software without restriction, including without limitation the rights to 
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 
 * of the Software, and to permit persons to whom the Software is furnished to do 
 * so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in all 
 * copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE. 
 * */
package com.netflix.webapis.catalog.vo
{
	import mx.utils.ObjectUtil;
	
	/**
	 * CatalogTitleVO returned from the numerous <code>TitlesService</code> methods.
	 * 
	 * @author brianburck
	 * 
	 * @see com.netflix.webapis.catalog.TitlesService.catalogService()
	 * @see com.netflix.webapis.catalog.TitlesService.moviesService()
	 * @see com.netflix.webapis.catalog.params.CatalogParams
	 */
	public class CatalogTitleVO
	{
		
		public static const MOVIE:String = "movie";
		public static const SERIES:String = "series";
		public static const SEASON:String = "season";
		public static const EPISODE:String = "episode";
		public static const DISC:String = "disc";
		
		public var movieID:Number = NaN;
		public var seriesID:Number = NaN;
		public var seasonID:Number = NaN;
		public var episodeID:Number = NaN;
		public var discID:Number = NaN;
		
		public var id:String;
		public var titleType:String;
		
		public var titleShort:String;
		public var titleRegular:String;
		
		public var boxArtSmall:String;
		public var boxArtMedium:String;
		public var boxArtLarge:String;
		
		public var synopsis:LinkItemVO;
		public var cast:LinkItemVO;
		public var directors:LinkItemVO;
		public var screenFormats:LinkItemVO;
		public var languagesAndAudio:LinkItemVO;
		public var seasons:LinkItemVO;
		public var episodes:LinkItemVO;
		public var similars:LinkItemVO;
		public var officialSite:LinkItemVO;
		public var webPage:LinkItemVO;
		public var formats:LinkItemVO;
		public var discs:LinkItemVO;
		
		public var releaseYear:Number;
		public var runtime:Number;
		public var averageRating:Number;
		
		public var categories:Array;
		public var links:Array;
		
		public function CatalogTitleVO()
		{
		}
		
		public function toString():String
		{
			return ObjectUtil.toString(this);
		}

	}
}